<script language="javascript" type="text/javascript" src="/assets/My97DatePicker/jquery-1.8.2.js"></script>
<style>
    #ribbon{
        display:none;
    }
    body{
        background: none;
    }
    .c_box{
        margin:5px;
        cursor: pointer;
    }
    .cur{
        color:red;
    }
    td {font-size: 12px; text-align: left; max-width: 200px}
</style>
<script>
    function product_mark_del(btn,id){

        $.ajax({
            type: "post",
            url: "/admin/product/product_save_del",
            data: {"id":id,"pid":pid},
            dataType: "json",
            success: function(data){
                if(data){
                    $(btn).parents().parents('.box12').remove();
                }else{
                    alert("删除失败");
                }
            }
        });

    }
</script>

<form action="" method="post" id="add-form">

    <table  class="table table-striped table-bordered table-hover table-nowrap"  >
        <thead>
        <tr>   <th>
            <div class="th-inner ">排序</div>
            <div class="fht-cell"></div>
        </th>
            <th>
            <div class="th-inner ">操作</div>
            <div class="fht-cell"></div>
        </th>

            <th data-field="0">ID</th>

            <th  data-field="id">
                <div class="th-inner ">id</div>
                <div class="fht-cell"></div>
            </th>
            <th  data-field="id">
                <div class="th-inner ">产品名称</div>
                <div class="fht-cell"></div>
            </th>


        </tr>
        </thead>
        <tbody data-listidx="0">
        {volist name="adplist" id="vo"}
        <tr data-index="0" class="box12">
            <td >
                <input name="m_order[{$vo['id']}]" value="{$vo.ad_order}" type="number" min="0" style="width:50px;"/>
            </td>
            <td >
                <a class="btn btn-danger btn-add add_product" href="/admin/product/index_product_link?pid={$pid}&action=del&delid={$vo.adid}&senseid={$vo.senseid}">删除</a>
            </td>
            <td >{$vo.id}</td>

            <td>{$vo.p_name}</td>


        </tr>
        {/volist}
        <tr>
            <td colspan="5" style="padding-left:18px; ">
                <input type="submit" value="提交" class="group_btn" />
            </td>
        </tr>
        </tbody>
    </table>
</form>

<!--
<script>
    $(".group_btn").click(function () {
        $("#add-form").submit()
    })
</script>-->
